home *** CD-ROM | disk | FTP | other *** search
- Back in my limited mind, I remembered an article about there being
- a Winsock.dll for WIN32S applications running under regular
- windows. Is there such a thing? Perhaps a converted .dll that
- maps 32 bit requests into 16 bit ones?
-
- -Mike Grenier
- mike@atc.sp.paramax.com
- From James=L.=Weaver@nectech.com Wed Oct 13 19:48:59 1993
- Received: from nectech.com (milkyway.nectech.com) by SunSITE.unc.edu (SMI4.1/FvK 1.02)
- id AA14020; Wed, 13 Oct 93 19:48:59 EDT
- Received: from CS011.nectech.com by nectech.com with SMTP (5.65/29-nectech)
- id AA13981; Wed, 13 Oct 93 19:33:27 -0400
- Return-Path: <James=L.=Weaver@nectech.com>
- Message-Id: <9310132333.AA13981@nectech.com>
- Received: by CS011.nectech.com with VINES ; Wed, 13 Oct 93 19:48:04 EDT
- Date: Wed, 13 Oct 93 19:47:57 EDT
- From: James=L.=Weaver@nectech.com
- Subject: Re: FD_CLOSE message: When does it get sent?
- To: winsock@sunsite.unc.edu
- Cc:
-
- I am on vacation until 10/18. Please contact Dick Dingler in an emergency.
- -------------
- Original Text
- >From wilson@ftp.com (Brad Wilson), on 10-13-93 19:46:
-
- Cc'ed to alt.winsock.
-
- > From: iblenke@x102a.ess.harris.com (blenke john 59108)
- > To: wilson@ftp.com
- > Subject: Re: FD_CLOSE message: When does it get sent?
- >
- > You won't get an FD_READ when the connection closes (this is
- stated
- > quite clearly in the WinSock docs).
- >
- > If the connection closes unexpectedly, don't you receive a FD_READ message
- > so that recv() returns 0? If not, what exactly does a 0 returned by
- > recv() mean? Read past end of connection?
-
- Yes ... it's a holdover from Berkeley, and is meant mainly for the use
- of blocking applications. Since a WSAAsyncSelect means you are not
- using that model -- and are capable of getting FD_CLOSE -- you won't
- get an FD_READ for a closed socket with AsyncSelect.
-
- > If you call closesocket(), you should already KNOW that the socket is
- > closed (you just marked it so). The FD_CLOSE message is only for
- disconnects
- > initiated by the remote host.... after this message, should we assume that
- > the socket is no longer valid?
-
- Umm ... I'd have to review my specs, but I believe that you can still send
- out your side of the socket when you get an FD_CLOSE. This goes into
- lots of TCP, but TCP is essentially two channels of connection ... the
- incoming and the outgoing. They can be independtly shutdown (with the
- shutdown() function), meaning you can close the send half and still
- receive. I _believe_ (no quotes) that when a close() is issued by the
- remote, the TCP FIN goes out and you get the FD_CLOSE (indicating that
- no more data is going to come in). However, you can still write to
- the socket and need to closesocket() it to completely close the
- connection.
-
- --
- Brad Wilson "I think the most important thing to note is that in
- #include <disclaimer> America, those on the right can do what those on the
- #include <joke> left can only talk about." - Richard M. Nixon
-
-
-